﻿using GameFramework.WebServer;

namespace Server.Proto
{
    /// <summary>
    /// 校验登录票据请求
    /// </summary>
    public class WebVerifyLoginTokenReq : WebServerReq<WebServerResp>
    {
        public const string RouteKey = "verify_login_token";

        public override string Route => RouteKey;
        
        /// <summary>
        /// 账号id
        /// </summary>
        public long AccountId { get; set; }
        
        /// <summary>
        /// 登录票据 登录一次后就失效 后续重连需要试用LoginResp返回的ReconnectToken
        /// </summary>
        public string LoginToken { get; set; }

        public override void OnRecycle()
        {
            AccountId = default;
            LoginToken = string.Empty;
        }
    }
}